<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./Tools.js"></script>
    <script>
        const content = prompt('请输入网址')
        if (Tools.isWeb(content)) {
            console.log(Tools.isWeb(content));
            location.assign(Tools.isWeb(content))
        } else {
            alert("您输入的网址格式有误,为您自动跳转至拉勾")
            location.assign("https://www.lagou.com")
        }
    </script>
</body>

</html>